package main

import "fmt"

func main() {
	// 1、交换变量
	a := 100
	b := 200
	b, a = a, b
	fmt.Println("a is ", a)
	fmt.Println("b is ", b)

	// 2、获取函数多个返回值
	c, d := foo()
	fmt.Println("c is ", c)
	fmt.Println("d is ", d)

	// 3、因为go变量声明必须使用：引入匿名变量
	e, _ := foo()
	fmt.Println("e is ", e)

}
func foo() (int, int) {
	return 100, 200
}
